#include "ArduinoHc05BluetoothTestHardwareInfo.h"
#include <SoftwareSerial.h>

SoftwareSerial* bluetoothSerial;
HardwareSerial* hardwareSerial;

void setup()
{
	using namespace ArduinoHc05BluetoothTestHardwareInfo;

	bluetoothSerial = new SoftwareSerial(BLUETOOTH_TXD, BLUETOOTH_RXD);
	hardwareSerial = &Serial;

	hardwareSerial->begin(HARDWARE_SERIAL_BAUDRATE);
	bluetoothSerial->begin(BLUETOOTH_SERIAL_BAUDRATE);

	hardwareSerial->println("---------");
}

void loop()
{
	while (bluetoothSerial->available() > 0)
	{
		hardwareSerial->write(bluetoothSerial->read());
	}

	while (hardwareSerial->available() > 0)
	{
		bluetoothSerial->write(hardwareSerial->read());
	}
}
